﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrderList.ascx.cs" Inherits="MobileShop.Controls.OrderList" %>

<ul class='menus'>
    <asp:Repeater ID="rpt" runat="server"  >
        <ItemTemplate>
            <li class='menuitem'>
                <a href='OrderDetail.aspx?id=<%# Eval("ID") %>'>
                     <span class='productname' style='font-size:12px'># <%# Eval("OrderNo")%></span>
                     <span class='productprice' style='display:inline-block; width:30px'></span>
                     <span class='note' style='font-size:12px'><%# Eval("CreatedDate") != DBNull.Value ? ((DateTime)Eval("CreatedDate")).ToString(POSSystem.BLL.SystemVariables.SysVars.DateFormat) : ""%></span>
                     <br />
                     <span class='productDetailLabel' >Total Amt: </span> 
                     <span class='productprice' style='display:inline-block; width:70px'><%# string.Format("{0:C}", Eval("TotalAmount"))%></span> 
                     <span class='productDetailLabel'>Status: <%# Eval("StatusName") %></span> 
                </a>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
